<?php /* Smarty version 2.6.12, created on 2008-10-30 13:16:02
         compiled from admin/main/images_location.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'admin/main/images_location.tpl', 46, false),array('modifier', 'escape', 'admin/main/images_location.tpl', 50, false),array('modifier', 'strip_tags', 'admin/main/images_location.tpl', 67, false),array('modifier', 'date_format', 'admin/main/images_location.tpl', 73, false),array('modifier', 'substitute', 'admin/main/images_location.tpl', 74, false),)), $this); ?>
<?php func_load_lang($this, "admin/main/images_location.tpl","lbl_images_location,txt_images_location_top_text,lbl_store_images_in,lbl_database,lbl_file_system,lbl_store_url_images,lbl_md5_verification,lbl_file_size_limit,lbl_default_image,txt_images_location_notes,lbl_submit,txt_images_location_logfile_link,lbl_images_location"); ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "page_title.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_images_location'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog_tools.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<br /><br />

<?php echo $this->_tpl_vars['lng']['txt_images_location_top_text']; ?>


<br /><br />

<?php ob_start(); ?>

<form action="images_location.php" method="post">

<?php $_from = $this->_tpl_vars['config']['available_images']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['type'] => $this->_tpl_vars['is_unique']):
 $this->assign('config_data', $this->_tpl_vars['config']['setup_images'][$this->_tpl_vars['type']]); ?>

<table cellpadding="1" cellspacing="1" width="100%">

<tr>
	<td><a name="<?php echo $this->_tpl_vars['type']; ?>
"></a><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "main/subheader.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['config_data']['label'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?></td>
</tr>
<tr>
	<td>
<table>
<tr>
	<td width="40%"><?php echo $this->_tpl_vars['lng']['lbl_store_images_in']; ?>
:</td>
	<td width="60%">
	<select name="data[<?php echo $this->_tpl_vars['type']; ?>
][location]">
		<option value="DB"<?php if ($this->_tpl_vars['config_data']['location'] == 'DB'): ?> selected="selected"<?php endif; ?> class="DBOption"><?php echo $this->_tpl_vars['lng']['lbl_database']; ?>
</option>
		<option value="FS"<?php if ($this->_tpl_vars['config_data']['location'] == 'FS'): ?> selected="selected"<?php endif; ?> class="FSOption"><?php echo $this->_tpl_vars['lng']['lbl_file_system']; ?>
</option>
	</select>
	</td>
</tr>
<tr>
	<td><label for="<?php echo $this->_tpl_vars['type']; ?>
_save_url"><?php echo $this->_tpl_vars['lng']['lbl_store_url_images']; ?>
:</label></td>
	<td><input type="checkbox" id="<?php echo $this->_tpl_vars['type']; ?>
_save_url" name="data[<?php echo $this->_tpl_vars['type']; ?>
][save_url]" value="Y"<?php if ($this->_tpl_vars['config_data']['save_url'] == 'Y'): ?> checked="checked"<?php endif; ?> /></td>
</tr>
<tr>
	<td><label for="<?php echo $this->_tpl_vars['type']; ?>
_md5_check"><?php echo $this->_tpl_vars['lng']['lbl_md5_verification']; ?>
:</label></td>
	<td><input type="checkbox" id="<?php echo $this->_tpl_vars['type']; ?>
_md5_check" name="data[<?php echo $this->_tpl_vars['type']; ?>
][md5_check]" value="Y"<?php if ($this->_tpl_vars['config_data']['md5_check'] == 'Y'): ?> checked="checked"<?php endif; ?> /></td>
</tr>
<tr>
	<td><?php echo $this->_tpl_vars['lng']['lbl_file_size_limit']; ?>
*:</td>
	<td nowrap="nowrap"><input type="text" size="10" maxlength="10" name="data[<?php echo $this->_tpl_vars['type']; ?>
][size_limit]" value="<?php echo ((is_array($_tmp=@$this->_tpl_vars['config_data']['size_limit'])) ? $this->_run_mod_handler('default', true, $_tmp, '0') : smarty_modifier_default($_tmp, '0')); ?>
" /></td>
</tr>
<tr>
	<td><?php echo $this->_tpl_vars['lng']['lbl_default_image']; ?>
:</td>
	<td nowrap="nowrap"><input type="text" name="data[<?php echo $this->_tpl_vars['type']; ?>
][default_image]" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['config_data']['default_image'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /></td>
</tr>
<tr>
	<td colspan="2">&nbsp;</td>
</tr>
</table>
	</td>
</tr>
</table>
<?php endforeach; endif; unset($_from); ?>

<br />

<?php echo $this->_tpl_vars['lng']['txt_images_location_notes']; ?>


<br /><br />

<input type="submit" value="<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lng']['lbl_submit'])) ? $this->_run_mod_handler('strip_tags', true, $_tmp, false) : smarty_modifier_strip_tags($_tmp, false)))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />

</form>

<?php if ($this->_tpl_vars['log_file']): ?>
<br />
<?php $this->assign('logfile_date', ((is_array($_tmp=$this->_tpl_vars['log_file_date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, $this->_tpl_vars['config']['Appearance']['datetime_format']) : smarty_modifier_date_format($_tmp, $this->_tpl_vars['config']['Appearance']['datetime_format'])));  echo ((is_array($_tmp=$this->_tpl_vars['lng']['txt_images_location_logfile_link'])) ? $this->_run_mod_handler('substitute', true, $_tmp, 'date', $this->_tpl_vars['logfile_date']) : smarty_modifier_substitute($_tmp, 'date', $this->_tpl_vars['logfile_date'])); ?>

<?php endif; ?>

<br />

<?php $this->_smarty_vars['capture']['dialog'] = ob_get_contents(); ob_end_clean();  $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "dialog.tpl", 'smarty_include_vars' => array('title' => $this->_tpl_vars['lng']['lbl_images_location'],'content' => $this->_smarty_vars['capture']['dialog'],'extra' => 'width="100%"')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>